﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="DevFrameWork.Web.DevTest.DevDemo01.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title></title>
        <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/Script/EasyUI/themes/default/easyui.css") %>" />
    <script type="text/javascript" src="<%=ResolveUrl("~/Script/js/jquery-1.4.2.min.js") %>"></script>
    <script type="text/javascript" src="<%=ResolveUrl("~/Script/EasyUI/jquery.easyui.min.js") %>"></script>
    <script type="text/javascript" src="<%=ResolveUrl("~/Script/js/jquery.form.js") %>"></script>
    
    <script type="text/javascript">
        $(document).ready(function() {
            //alert(new Date());
            // 定义访问的路径

            $('#myGrid').datagrid({
                title: '模块信息列表',
                width: "100%",
                height: 500,
                pageSize: 20,
                loadMsg: '正在加载...,请稍候',
                url: '<%=ResolveUrl("~/admin/xsystem/ModuleMng/DoModuleInfoHandler.ashx?cmd=getmodulelist") %>&rnd=' + new Date(),
                singleSelect: true,
                columns: [[
                { field: 'InfoId', title: '选择', checkbox: true },
                { field: 'ModuleCode', title: '模块编码', width: 80 },
                { field: 'ModuleName', title: '模块名称', width: 200 },
                { field: 'ModuleUrl', title: '模块地址', width: 400 }
            ]],
                toolbar: [{
                    text: '增 加',
                    handler: function() {
                        AddInfo();
                    }
                },
            {
                text: '修 改',
                handler: function() {
                    ModInfo();
                }
            },
            {
                text: '删 除',
                handler: function() {
                    DelInfo();
                }
            },
            {
                text: '设置参数',
                handler: function() {
                    SetModuleParamsInfo();
                }
            },
            {
                text: '设置多选/单选',
                handler: function() {
                    SetEnableSelectMany();
                }
            }

],

                pagination: true
            });

        });
    </script>
</head>
<body>
    <form id="form1">
    <div>
    <table id="myGrid"></table>
    </div>
    </form>
</body>
</html>
